package com.hhu.userservice.object.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserInfoDto {

    private String userId;

    private String userName;

    private String userPassword;

    /**
     * 用户角色
     */
    private String role;

    public boolean isNull() {
        return this.userId == null && this.userName == null && userPassword == null;
    }
}
